<template>
  <div class="container">
    <div class="bread">
      <ul>
        <li>全部结构</li>
        <li>></li>
        <li>厨房电器</li>
      </ul>
    </div>
    <div class="filter">
      <div class="filterTitle">
        <h4>品牌</h4>
        <div class="filterContent">
          <ul class="filterContentImg">
            <li>
              <img src="images/1.png" />
              <div class="filterContentImgTitle">1</div>
            </li>
            <li>
              <img src="images/2.png" />
              <div class="filterContentImgTitle">1</div>
            </li>
            <li>
              <img src="images/3.png" />
              <div class="filterContentImgTitle">1</div>
            </li>
            <li>
              <img src="images/4.png" />
              <div class="filterContentImgTitle">1</div>
            </li>
          </ul>
        </div>
        <button>+ 多选</button>
      </div>
      <div class="filterCategory">
        <h4>品牌</h4>
        <ul>
          <li>1</li>
          <li>2</li>
          <li>3</li>
        </ul>
      </div>
      <div class="filterCategory">
        <h4>品牌</h4>
        <ul>
          <li>1</li>
          <li>2</li>
          <li>3</li>
        </ul>
      </div>
    </div>

    <div class="sortBar">
      <div class="opGeneral"><span>综合</span></div>
      <div class="opPrice"><span>价格</span></div>
      <div class="opDiscount"><span>折扣</span></div>
      <div class="opSale"><span>销量</span></div>
      <div class="opSelectPrice">
        <span>
          ￥
          <input />
        </span>
        <i>-</i>
        <span>
          ￥
          <input />
        </span>
      </div>
      <div class="opPagination">
        <span>1/5</span>
        <button>下一页</button>
      </div>
    </div>
    <div class="goodsContainer">
      <div class="goodsItem">
        <img
          src="//a.vpimg3.com/upload/brandcool/0/2646b0bee2034b93a0ab7527b68dd23a/10005612/primary.png"
          alt=""
          style="width: 60px; height: 30px; position: absolute; left: 8px; top: 8px"
        />
        <img src="images/b1.png" />
        <div class="multiColor"></div>
        <div class="goodsPrice">
          <span class="goodsPriceLogo">特卖价</span>
          <span class="goodsRealPrice">￥5949</span>
          <span>
            <del>￥6799</del>
          </span>
          <span>8.7折</span>
        </div>
        <p>iPhone 13 双卡双待 256G 全网通 5G手机</p>
      </div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
      <div class="goodsItem"></div>
    </div>
  </div>

  <Bottom></Bottom>
</template>

<script>
export default {
  name: 'Search',
}
</script>

<style lang="less" scoped>
* {
  margin: 0;
  ul {
    list-style-type: none;
  }
  color: black;
}

.container {
  width: 80%;
  height: 900px;
  box-sizing: border-box;
  margin: 20px auto;
  .bread {
    height: 40px;
    ul {
      li {
        float: left;
      }
    }
  }
  .filter {
    border: 1px solid black;
    border-bottom: none;
    .filterTitle {
      width: 100%;
      height: 95px;
      border-bottom: 1px dashed;
      position: relative;
      h4 {
        padding: 16px 20px;
        width: 98px;
        height: 18px;
        float: left;
      }
      .filterContent {
        padding: 20px 0px;
        ul {
          margin-left: 30px;
          li {
            float: left;
            .filterContentImgTitle {
              display: none;
            }
            img {
              width: 98px;
              height: 60px;
            }
          }
        }
      }

      button {
        position: absolute;
        right: 10px;
        top: 10px;
        border: 1px solid #d1d1d1;
        background-color: #fff;
        width: 48px;
        height: 22px;
        border-radius: 3px;
      }
    }
    .filterCategory {
      padding-top: 20px;
      border-bottom: 1px dashed;
      height: 64px;
      h4 {
        padding: 16px 20px;
        width: 98px;
        height: 18px;
        float: left;
      }
      ul {
        li {
          float: left;
          margin-right: 50px;
        }
      }
    }
    .filterGroup {
      border-bottom: 1px dashed;
      height: 64px;
      h4 {
        padding: 16px 20px;
        width: 98px;
        height: 18px;
        float: left;
      }
      ul {
        li {
          float: left;
        }
      }
    }
  }
  .sortBar {
    border: 1px solid #dfdfdf;
    margin-top: 30px;
    width: 80%;
    height: 42px;
    background-color: #f5f5f5;
    position: absolute;
    text-align: center;
    line-height: 42px;

    .opGeneral {
      width: 60px;
      float: left;
      border-right: 1px solid #dfdfdf;
    }
    .opPrice {
      width: 60px;
      border-right: 1px solid #dfdfdf;

      float: left;
    }
    .opDiscount {
      width: 60px;
      border-right: 1px solid #dfdfdf;

      float: left;
    }
    .opSale {
      width: 60px;
      border-right: 1px solid #dfdfdf;

      float: left;
    }
    .opSelectPrice {
      width: 160px;
      float: left;
      input {
        width: 30px;
      }
    }
    .opPagination {
      width: 150px;
      float: right;
      span {
        display: block;
      }
      button {
        float: right;
      }
    }
  }
  .goodsContainer {
    margin-top: 100px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    display: flex;
    .goodsItem {
      margin-top: 20px;
      margin-left: 50px;
      width: 235px;
      height: 357px;
      border: 1px solid purple;
      position: relative;
      .multiColor {
        width: 15px;
        height: 33px;
        background-image: url(//ugc.vipstatic.com/img/plugins/goods/icon-multi-color.png);
        position: absolute;
        bottom: 130px;
        right: 8px;
      }
      .goodsPrice {
        height: 30px;
        .goodsPriceLogo {
          margin-left: 10px;
          width: 36px;
          height: 18px;
          display: inline-block;
          font-size: 12px;
          color: white;
          background-image: linear-gradient(270deg, #e456ff 0, #ff31a3 100%);
          border-radius: 10px;
        }
        .goodsRealPrice {
          font-size: 23px;
        }
      }
      img {
        width: 233px;
        height: 235px;
      }
      span {
        margin-left: 10px;
      }
      p {
        margin-top: 20px;
      }
      &:hover {
        width: 251px;
        height: 373px;
      }
    }
  }
}
</style>
